<?php
namespace app\admin\controller;

class Systems extends Controller
{
    public function menus()
    { 
        return $this->fetch('menus/index');
    }
    /**
     *  验证码
     */
    public function verify()
    {
        $captcha = new Captcha();
        $captcha->fontSize = 16;
        $captcha->length = 4;
        $captcha->useCurve = false;
        $captcha->useNoise = false;
        return $captcha->entry();
    }   
    /**
     *  检查登录
     */
    public function checkLogin()
    { 
        $m = new Users();
        return $m->checkLogin();
    }
    
    /**
     * 
     * @return type
     */
    public function home()
    { 
        return $this->fetch();
    }
}
